package com.orphan.marketBack.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketBack.po.OrderReturn;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ReturnOrderMapper")
public interface ReturnOrderMapper extends BaseMapper<OrderReturn> {
    @Select("select * from order_return_1")
    List<OrderReturn> selectAllReturn();

    @Select("select * from order_return_1 where returns_no like '%${returnsNo}%'")
    List<OrderReturn> selectAllById(OrderReturn orderReturn);


    List<OrderReturn> selectOrder(OrderReturn orderReturn);
}
